package com.qf.day02;

import java.util.Scanner;

public class xt5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入积分");
        double jf = sc.nextDouble();
        System.out.println("请输入总金额");
        double zje = sc.nextDouble();
        double z;
        if(jf<2000){
            System.out.println("9折");
            z=0.9;
            zje = zje*z;
        }else if(jf>=2000&&jf<4000){
            System.out.println("8折");
            z=0.8;
            zje = zje*z;
        }else if(jf>=4000&&jf<8000){
            System.out.println("7折");
            z=0.7;
            zje = zje*z;
        }else{
            System.out.println("6折");
            z=0.6;
            zje = zje*z;
        }
        System.out.println(zje);
    }
}
